<template>
    <div>
        <table>
            <tr>
                <td>用户名</td>
                <td>密码</td>
                <td>手机号</td>
            </tr>
            <tr v-for="i in good" :key="i.id">
                <td>{{ i.username }}</td>
                <td>{{ i.password }}</td>
                <td>{{ i.phone }}</td>
            </tr>
        </table>
    </div>
</template>

<script>
import axios from "axios" 
export default {
    name:"show",
    data(){
        return{
            good:[],
        }
    },
    methods:{
    
    },
    created(){
        let data = {"id":this.id}
        axios({
                url:"http://127.0.0.1:8000/users/show/",
                method:"get",
                params:{"id":sessionStorage.getItem("id")}
            }).then(res=>{
                console.log(res.data)
                this.good=res.data.data
            })  
    }
}
</script>

<style>

</style>
